Options -Indexes
<FilesMatch "^(config\.php|.*\.sqlite|README\.md)$">
  Require all denied
</FilesMatch>

RewriteEngine On
RewriteRule ^sdb/[0-9]+/([A-Za-z0-9_]+\.php)$ sdb.php?endpoint=$1 [QSA,L]

# LiteSpeed (most shared hosts): let the sports update finish even after the
# caller has disconnected (cron with a short timeout, or a box that already got its feed).
<IfModule LiteSpeed>
RewriteRule ^(sports_refresh\.php|api/sports_feed\.php)$ - [E=noabort:1,E=noconntimeout:1]
</IfModule>
